package ContactInfoSystem;

import java.util.List;

public class GroupedContacts {
	private String groupName;
	private List<Contact> contacts;
	private int sum=0;
	public GroupedContacts(){
		
	}
	public GroupedContacts(String groupName, List<Contact> contacts){

		this.groupName=groupName;
		this.contacts=contacts;
		this.sum=contacts.size();
	}
	public String getGroupName(){
		return groupName;
	}
	public void setGroupName(String groupName){
		this.groupName=groupName;
	}
	public List<Contact> getContact(){
		return contacts;
	}
	public void setContact(List<Contact> contacts){
		this.contacts=contacts;
		this.sum=contacts.size();
	}
	
	public int getSum(){
		return sum;
	}
	public void setSum(int sum){
		this.sum=sum;
	}
}
